#ifndef __CASYNCSOCKET_HPP
#define __CASYNCSOCKET_HPP

class CAsyncSocket
{

public:

    BOOL Connect( LPCTSTR lpszHostAddress, UINT nHostPort );

    virtual int Receive( void* lpBuf, int nBufLen, int nFlags = 0 );
    virtual int Send( const void* lpBuf, int nBufLen, int nFlags = 0 );

    virtual void Close( );


public:

    SOCKET m_hSocket;

};

#endif /* __CASYNCSOCKET_HPP */